cmake_minimum_required(VERSION 3.12)
project(obstacle_avoidance)

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME} PRIVATE
    ${OpenCV_LIBS}
    spdlog::spdlog
    vision
    device
)

target_include_directories(${PROJECT_NAME} PRIVATE
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    $<TARGET_PROPERTY:device,INTERFACE_INCLUDE_DIRECTORIES>
    $<TARGET_PROPERTY:vision,INTERFACE_INCLUDE_DIRECTORIES>
)

include_directories(third_party/rplidar/sdk/include/)
link_directories(data/lib/)
link_libraries(sl_lidar_sdk)

add_dependencies(${PROJECT_NAME}
    device
)